﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.Pay
{
    /// <summary>
    /// 获取订单详细结果
    /// </summary>
    public class GetOrderDetailedModel:IOrderState,IParentOrderID
    {
        /// <summary>
        /// 父订单号
        /// </summary>
        public string ParentOrderCode { get; set; }
        /// <summary>
        /// 订单总价
        /// </summary>
        public decimal? OrderTotalMoney { get; set; }
        /// <summary>
        /// 扣减赠送币金额
        /// </summary>
        public decimal? OrderGiveMoney { get; set; }
        /// <summary>
        /// 实付款
        /// </summary>
        public decimal? PaymentAmount { get; set; }
        /// <summary>
        /// 订单状态;1(等待买家付款)、(2买家已付款)、4(交易成功)、5(交易关闭)、6(退款中)
        /// </summary>
        public int? OrderState { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime? OrderCreateTime { get; set; }
        /// <summary>
        /// 付款方式;1(金币)、2(微信)、3(支付宝)
        /// </summary>
        public Nullable<int> PaymentMethod { get; set; }
        /// <summary>
        /// 付款时间
        /// </summary>
        public DateTime? PaymentTime { get; set; }

        /// <summary>
        /// 订单下面商品信息
        /// </summary>
        public List<GetOrderDetailedModelChild> Commoditys { get; set; }

        #region 需求《2021-9-14：添加需求《VLions需求规格_度度圈接口需求_订单及购物车-202100909.docx》的相关内容》添加的内容 
        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 所在地区
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 桌号
        /// </summary>
        public string TableNum { get; set; }

        /// <summary>
        /// 包装类别，0=堂食，1=打包
        /// </summary>
        public int PackType { get; set; }
        #endregion
    }

    /// <summary>
    /// 获取订单详细结果-商品信息
    /// </summary>
    public class GetOrderDetailedModelChild: ParentOrderListModelChild
    { 
        
    }
}
